// import { Component, OnInit, ViewChild } from '@angular/core';
// import { ToptipsService } from 'ngx-weui';
// import { Router, ActivatedRoute } from '@angular/router';
// import { StorageService } from '../core/sotrage/storage.service';

// @Component({
// 	templateUrl: './rechargeSuccess.html',
// 	styleUrls: ['./recharge.component.less'],
// })
// export class RechargeSuccessComponent implements OnInit {
//     travelOrderId;
//     @ViewChild("myBox",{ static: true }) _ifr1: any;

//     ngAfterViewInit(){
//         let host = this.sto.get('host');
//         window.parent.postMessage({type:"payOk",orderNum:'0001'}, 'http://' + host) ;
//     }

// 	constructor(private srv: ToptipsService,private router:Router ,private sto: StorageService,private activeRoute:ActivatedRoute) {
//         this.travelOrderId = this.activeRoute.snapshot.queryParams['travelOrderId'];
// 	}
//     ngOnInit() {}
//     toDetail(){
        
//         // let ifrl = this._ifr1.nativeElement.contentWindow;
		
//         // this.router.navigate(['/orderDetail'], {
//         //     queryParams:{
//         //         travelOrderId:this.travelOrderId
//         //     }
//         // });
//     }
// }
